package com.yuantu.judiciary.model.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 用户关系表单
 *
 * @author syw
 * @since 2023-07-25
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("用户关系表单")
public class UserRelationVO {
    private Long id;
    private String name;
    private List<UserRelationVO> children;

    public UserRelationVO(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public UserRelationVO(String name, List<UserRelationVO> children) {
        this.name = name;
        this.children = children;
    }

}
